Test Series - java script

Test Number 90/92

Q: Which side of the image map can be created using JavaScript?
A. Server side
B. Client side
C. Both Server and Client side
D. User side
Solution: Javascript is used for the creation of client side data. You can use JavaScript to create client side image map.
Q: Which is the attribute used to enable the Client-side image map?
A. map
B. area
C. usemap
D. areamap
Solution: The usemap attribute is associated with a  element’s name or id attribute, and creates a relationship between the  and the .
Q: Which of the following is not a navigator method?
A. postEnabled
B. reference
C. preference
D. postreference
Solution: The preference(name, value) method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value Netscape only.
Q: What is the purpose of the area element?
A. Area of the text
B. Shape and coordinates of the hotspot
C. Shape and area of the hotspot
D. Coordinates and area
Solution: The  tag defines an area inside an image-map (an image-map is an image with clickable areas). The  element is always nested inside a  tag. The area element specifies the shape and the coordinates that define the boundaries of each clickable hotspot.
Q: Which of the following is not a navigator property?
A. platform[]
B. plugin[]
C. userAgent[]
D. browser[]
Solution: The navigator object contains information about the browser. All of the above mentioned are the properties of a navigator.
Q: What is the purpose of the preference method in a navigator?
A. Set Browser preference
B. Set Netscape preference
C. Both Set Browser & Netscape preference
D. Sets user preference
Solution: The preference(name,value) method allows a signed script to get and set some Netscape preferences. If the second parameter is omitted, this method will return the value of the specified preference; otherwise, it sets the value Netscape only.
Q: Which are the special tags used for image mapping?
A. map and area
B. map and usemap
C. only map
D. only usemap
Solution: The usemap attribute specifies an image (or an object) as an image-map (an image-map is an image with clickable areas). The special tags used for image mapping are map and area.
Q: What is the purpose of the userAgent property?
A. Identifying the data
B. Identifying the client
C. Both Identifying the data and client
D. Identifying the dataset
Solution: The userAgent[] property is a string that contains the code name and version of the browser. This value is sent to the originating server to identify the client. The userAgent property returns the value of the user-agent header sent by the browser to the server.
Q: Which is the element that follows the use of “img”?
A. area
B. usemap
C. map
D. any element can follow the use of “img”
Solution: The usemap attribute is associated with a  element’s name or id attribute, and creates a relationship between the  and the . The “map” element actually creates the map for the image and usually follows directly after the “img ” element.
Q: What is the purpose of the platform[] property in a navigator?
A. Platform of the script
B. Platform where the image map was designed
C. Platform where the browser was compiled
D. Platform where the plugin was designed
Solution: The platform[] property is a string that contains the platform for which the browser was compiled. “Win32” for 32-bit Windows operating systems.

You Have Score    /10